package com.hframe.taglib.json;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.Tag;

public class JsonPropertyTag extends JsonBaseTag {
	private static final long serialVersionUID = 1L;

	@Override
	public void setParent(Tag t) {
		super.setParent(t);
		out = true;
		ifNull = true;
	}

	@Override
	public int doStartTag() throws JspException {
		JsonBaseTag parent = getParent();
		if (parent != null)
			this.setObJson(parent.getObJson());

		GetJson();
		outJson();
		return super.doStartTag();
	}

	@Override
	public int doEndTag() throws JspException {

		return super.doEndTag();
	}

}
